package org.xteam.sled.semantic.exp;

public class ExpDiv extends ExpFactor {

	public ExpDiv(int factor, Exp expr) {
		super(factor, expr);
	}

	@Override
	public void visit(IExpVisitor visitor) {
		visitor.visitDiv(this);
	}
	
	public boolean equals(Object o) {
		return (o instanceof ExpDiv)
			&& ((ExpDiv)o).factor == factor
			&& ((ExpDiv)o).expr.equals(expr);
	}
	
	public String toString() {
		return "(" + expr + "/" + factor + ")";
	}

}
